package day1;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class InfiniteLoopBug {

	public static void main(String[] args) {
		List<Object> list = new ArrayList<Object>();
		list.add(list);
		Set<Object> set = new HashSet<Object>();
		set.add(set);
		set.add(set);
		set.add(1);
	}
	
	public static void loop(){
		for(int i=0;i<100;){
			System.out.println("Hello world.");
		}
	}
	
	public static void noDetect() {
		while (true) {
			System.out.println("Hello world.");
		}
	}
	
	public static void recursive(){
		recursive();
	}
}
